package cn.cmdr.service;

import cn.cmdr.pojo.Brand;
import cn.cmdr.pojo.Commodity;
import cn.cmdr.pojo.Stock;
import cn.cmdr.vo.ComVo;
import cn.cmdr.vo.PageVo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface ComService extends IService<Commodity> {
    List<Commodity> getComList(Integer id);
    public PageVo getPageComList(Integer pageNo, Integer pageSize, ComVo comVo);
    public List<Stock> getStockByComId(Integer commodityId);
    public Commodity getComById(Integer id);
    public void stockUpdate(Stock stock);
    public void comUpdate(Commodity commodity);
    public void add(Commodity commodity);
    public void sAdd(Stock stock);
    public void delete(Integer id);
    int getCount(Integer publishStatus);
    int getKCount();
    int getVCount(Integer verifyStatus);
    Commodity getCom(Integer id);

    void update(Commodity commodity);
    List<Stock> getSk(Stock stock);

    Commodity getc(Commodity commodity);
    Stock getst(Integer id);
    List<Commodity> getcBYyId(Integer brandId);
    List<Commodity> getsById(Integer productCategoryId);
    void delestock(Integer id);
}
